let multiply = function (x, y) {
  console.log(x * y);
};

//使用bind实现柯里化

let multiplyByTwo = multiply.bind(this,2,3)
let multiplyByThree = multiply.bind(this,3)

multiplyByTwo(3)
multiplyByThree(3)


let closure = function (x) {
    return function(y){
        console.log(x,y)
    }
}

closure(2)(3)